import pytest

@pytest.fixture(scope='class')
def start():
    print('自动化用例开始之前执行')

    yield

    print("自动化用例结束")


import os

#获取当前路径
print(__file__)

#获取当前上一级路径
print(os.path.dirname(__file__))
print(os.path.dirname(os.path.dirname(__file__)))

path=os.path.dirname(os.path.dirname(__file__))


test1="廖干"

#路径拼接
print(os.path.join(path,test1))


#合并操作
str1= '/hello/'
str2='good/boy/'
str3='doiido'
print(os.path.join(str1,str2,str3))
